package com.travelshare.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.travelshare.business.mapper.DataCountMapper;
import com.travelshare.business.domain.DataCount;
import com.travelshare.business.service.IDataCountService;

/**
 * 用户点赞量统计Service业务层处理
 * 
 * @author travelshare
 * @date 2024-03-29
 */
@Service
public class DataCountServiceImpl implements IDataCountService 
{
    @Autowired
    private DataCountMapper dataCountMapper;

    /**
     * 查询用户点赞量统计
     * 
     * @param keyId 用户点赞量统计主键
     * @return 用户点赞量统计
     */
    @Override
    public DataCount selectDataCountByKeyId(Long keyId)
    {
        return dataCountMapper.selectDataCountByKeyId(keyId);
    }

    /**
     * 查询用户点赞量统计列表
     * 
     * @param dataCount 用户点赞量统计
     * @return 用户点赞量统计
     */
    @Override
    public List<DataCount> selectDataCountList(DataCount dataCount)
    {
        return dataCountMapper.selectDataCountList(dataCount);
    }

    /**
     * 新增用户点赞量统计
     * 
     * @param dataCount 用户点赞量统计
     * @return 结果
     */
    @Override
    public int insertDataCount(DataCount dataCount)
    {
        return dataCountMapper.insertDataCount(dataCount);
    }

    /**
     * 修改用户点赞量统计
     * 
     * @param dataCount 用户点赞量统计
     * @return 结果
     */
    @Override
    public int updateDataCount(DataCount dataCount)
    {
        return dataCountMapper.updateDataCount(dataCount);
    }

    /**
     * 批量删除用户点赞量统计
     * 
     * @param keyIds 需要删除的用户点赞量统计主键
     * @return 结果
     */
    @Override
    public int deleteDataCountByKeyIds(Long[] keyIds)
    {
        return dataCountMapper.deleteDataCountByKeyIds(keyIds);
    }

    /**
     * 删除用户点赞量统计信息
     * 
     * @param keyId 用户点赞量统计主键
     * @return 结果
     */
    @Override
    public int deleteDataCountByKeyId(Long keyId)
    {
        return dataCountMapper.deleteDataCountByKeyId(keyId);
    }

	@Override
	public int deleteDataCount(DataCount dataCount) {
		return dataCountMapper.deleteDataCount(dataCount);
	}
}
